<include file="System:leftmenu" />

<div class="content-right fl">
    <h1 class="content-right-title">广告设置</h1>

    <form id="form" aciton="" method="post" enctype="multipart/form-data">
<!--        <div class="panel-single panel-single-light mgt20">
            <div class="formitems">
                <label class="fi-name">广告图片：</label>
                <div class="form-controls pdt5 j-imglistPanel">
                    <div id="uploadPic">
                        <ul id="uploadlist" style=" height:90px; overflow:hidden;">
                            <li>
                                <div class="displayimg"><img src="<?php echo C("UPYUN_DOMAIN");?><?php echo C('AD_IMG_URL');?>"  height="90px" onerror="javascript:this.src='__STATIC__admin/images/error.png';"/></div>
                            </li>
                        </ul>
                        <div style="clear:both;"></div>
                    </div>
                    <span class="fi-help-text">建议图片尺寸为640px * 280px</span>
                </div>
            </div>
            <div class="formitems">
                <label class="fi-name">选择图片上传：</label>
                <div class="form-controls">
                    <input type="file" class="input" name="AD_IMG_URL" value="上传">
                    <span class="fi-help-text"></span>
                </div>
            </div>
        </div>-->
        <div class="formitems">
            <label class="fi-name"><span class="colorRed">*</span>广告详情：</label>
            <div class="form-controls">
                    <!-- 加载编辑器的容器 -->
                    <script id="container2" name="AD_DETAIL" type="text/plain">
                        <?php echo htmlspecialchars_decode(C('AD_DETAIL'));?>
                    </script>
            </div>
        </div>
        <div class="formitems mgt20">  
            <label class="fi-name"><span class="colorRed">*</span>广告开关：</label>
            <div class="form-controls">
                <div class="radio-group">
                    <label><input type="radio" name="AD_STATUS" value="0" <?php echo (C("AD_STATUS")==1)?"":"checked";?> >关</label>
                    <label><input type="radio" name="AD_STATUS" value="1" <?php echo (C("AD_STATUS")==1)?"checked":"";?> >开</label>
                </div>
                <span class="fi-help-text">开启后，用户登录商城后会弹出本广告</span>
            </div>
        </div>

        <div class="panel-single panel-single-light mgt20">
            <a href="javascript:$('#form').submit();" class="btn btn-primary j-add">保存</a>
        </div>
    </form>
</div>
<script type="text/javascript" src="__STATIC__admin/js/ueditor/ueditor.config.js"></script>
<!-- 编辑器源码文件 -->
<script type="text/javascript" src="__STATIC__admin/js/ueditor/ueditor.all.js"></script>
<!-- 实例化编辑器 -->
<script type="text/javascript">
    var ue = UE.getEditor('container1');
    var ue = UE.getEditor('container2');
</script>